package com.freshman.feign.api;

import com.freshman.dto.OrderDTO;
import com.freshman.feign.service.OrderService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {
    @Resource
    private OrderService orderService;

    @RequestMapping("query")
    public String query(@RequestBody OrderDTO orderDTO,@RequestParam String phone){
        return orderService.query(orderDTO,phone);
    }

}
